FROM openjdk:17.0.2-jdk-oracle
RUN ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' > /etc/timezone
COPY target/*.jar wwwapi.jar
EXPOSE 37405 37499
ENTRYPOINT java -jar -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:37499 wwwapi.jar --spring.profiles.active=$env
